﻿using System.ComponentModel.DataAnnotations.Schema;
using Sunny.Framework.Core.Model;

namespace WishServer.Domain;

[Table("game_round")]
public class GameRoundPO : BaseEntity<long?, string>
{
    [Column("game_id")] public long? GameId { get; set; }

    /// 平台
    [Column("platform")]
    public string Platform { get; set; }

    /// 房间id
    [Column("room_id")]
    public string RoomId { get; set; }

    /// 回合id
    [Column("round_id")]
    public long? RoundId { get; set; }

    /// 用户id
    [Column("user_id")]
    public string UserId { get; set; }

    /// 阵营
    [Column("camp")]
    public string Camp { get; set; }

    public static GameRoundPO Empty()
    {
        return new GameRoundPO
        {
            Id = default(long),
            GameId = default(long),
            Platform = string.Empty,
            RoomId = string.Empty,
            RoundId = default(long),
            UserId = string.Empty,
            Camp = string.Empty,
            CreateTime = default(DateTime),
            CreateUser = string.Empty,
            UpdateTime = default(DateTime),
            UpdateUser = string.Empty,
            Deleted = default
        };
    }
}